package com.lunhui.service.lunhui.service.business;

import com.lunhui.user.client.model.RoseDto;
import com.lunhui.user.client.model.UserDto;

import java.util.List;

public interface UserService {
    Integer saveToDB (String account, String password) throws RuntimeException;

    UserDto findByAccountAndPassword (String account, String password) throws RuntimeException;

    List<RoseDto> findRoseNameListByUserId(Integer userId) throws RuntimeException;

    Integer updateUserInfo(UserDto userDto) throws RuntimeException;

    Integer crateRose (RoseDto roseDto);

    RoseDto findRoseByUserIdAndRoseName(Integer userId, String roseName);

    RoseDto findRoseByRoseId(Integer roseId);
}
